/* 主样式文件 - 导入所有组件 */

/* 基础样式 */
@import url('base.css');

/* 组件样式 */
@import url('components/header.css');
@import url('components/footer.css');

/* 全局过渡效果 */
* {
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* 页面布局 */
.page-container {
    flex: 1;
    padding: 2rem 0;
}

.content {
    padding: 2rem;
    background: white;
    border-radius: var(--apple-border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

/* 闪存消息样式 */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--apple-border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 暗色主题 */
.dark-theme {
    background: var(--apple-dark-gray);
    color: #e0e0e0;
}

.dark-theme .content {
    background: rgba(30, 30, 40, 0.9);
    color: #e0e0e0;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
    }

    .content {
        padding: 1rem;
    }
}